import React from "react";

import Constants from "../../common/Constants";
import BaseAction from "../common/BaseAction";

export default class JianYiSubmitAction extends BaseAction {
	constructor() {
		super();

		this.moduleType = Constants.MODULE_TYPE.JIANYI;
		this.name = "JianYiSubmitAction";
	}

	finish(data, isSucceed, response) {
		console.log("JianYiSubmitAction-finish", data, isSucceed, response);
		if (isSucceed) {
			this.caller.setState({ data: data, updateSucess: true });
		}
	}
}
